<%@ include file="/en/jsp/static.jsp" %>
<%@ page import="java.util.*,linuxbox.admin.logic.*" %>
<%@ taglib uri="/linuxbox/common.tld" prefix="common" %>
<%@ taglib uri="/linuxbox/Calendar.tld" prefix="calendar" %>

<%
  int ID = Integer.parseInt((String)request.getAttribute("ID"));
  int CREATEDBY = Integer.parseInt((String)request.getAttribute("CREATEDBY"));
  String SUBJECT = (String)request.getAttribute("SUBJECT");
  String CATEGORY = (String)request.getAttribute("CATEGORY");
  int FROM_YEAR = Integer.parseInt((String)request.getAttribute("FROM_YEAR"));
  int FROM_MONTH = Integer.parseInt((String)request.getAttribute("FROM_MONTH"));
  int FROM_DAY = Integer.parseInt((String)request.getAttribute("FROM_DAY"));
  int FROM_HOUR = Integer.parseInt((String)request.getAttribute("FROM_HOUR"));
  int FROM_MINUTE = Integer.parseInt((String)request.getAttribute("FROM_MINUTE"));
  int DURATION_HOUR = Integer.parseInt((String)request.getAttribute("DURATION_HOUR"));
  int DURATION_MINUTE = Integer.parseInt((String)request.getAttribute("DURATION_MINUTE"));
  int ISALLDAY = Integer.parseInt((String)request.getAttribute("ISALLDAY"));
  int SHARING = Integer.parseInt((String)request.getAttribute("SHARING"));

  String DESCRIPTION = (String)request.getAttribute("DESCRIPTION");
  int[] INVITED_USERS = (int[])request.getAttribute("INVITED_USERS");
  int REPEAT_TYPE = Integer.parseInt((String)request.getAttribute("REPEAT_TYPE"));
  int REPEAT_EVERYWEEK = Integer.parseInt((String)request.getAttribute("REPEAT_EVERYWEEK"));
  int REPEAT_WEEKDAYS = Integer.parseInt((String)request.getAttribute("REPEAT_WEEKDAYS"));
  int REPEAT_WHICHWEEK = Integer.parseInt((String)request.getAttribute("REPEAT_WHICHWEEK"));
  int REPEAT_WHICHWEEKDAY = Integer.parseInt((String)request.getAttribute("REPEAT_WHICHWEEKDAY"));
  int REPEAT_EVERYMONTH = Integer.parseInt((String)request.getAttribute("REPEAT_EVERYMONTH"));

  int REPEAT_FOREVER = Integer.parseInt((String)request.getAttribute("REPEAT_FOREVER"));
  int UNTIL_YEAR = Integer.parseInt((String)request.getAttribute("UNTIL_YEAR"));
  int UNTIL_MONTH = Integer.parseInt((String)request.getAttribute("UNTIL_MONTH"));
  int UNTIL_DAY = Integer.parseInt((String)request.getAttribute("UNTIL_DAY"));

  int timeInterval = sec.getConfigInt("calendar", "General", "Time Interval");

  int curCalUserID = curID;
  String tmpStr = (String)session.getAttribute("calendar.CurCalUserID");
  if ( tmpStr == null)
  {
    session.setAttribute("calendar.CurCalUserID", String.valueOf(curCalUserID));
  }
  else
    curCalUserID = Integer.parseInt(tmpStr);
  String TESTSTRING = (String)request.getAttribute("TESTSTRING");

  UserManager um = UserManager.getInstance();
  User user=null;
  String CREATEDBYUSERNAME=null;
  if (CREATEDBY!=-1)
  {
    CREATEDBYUSERNAME = um.getUserDisplayName(CREATEDBY, um.USERNAME_FORMAT_ALL);
  }


//	var newwin=window.open(filename,'boxdaypicker', 'WIDTH=250,HEIGHT=227,RESIZABLE=yes,SCROLLBARS=no,STATUS=0');
%>

<SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript">
<!--

//select all the items so they will be sent out
function onSubmit()
{
//	alert("Set selected");
  var options = document.theForm.INVITED_USERS.options;
  if ( options.length > 0)
  {
    for (i=options.length-1; i >=0; i--)
    {
      options[i].selected = true;
    }
//		alert("Set selected");
  }
}

function DateSelector(dateMonth, dateYear, itemPrefix)
{
  var filename = ('<%=BoxStatic.jspDir%>calendar/BoxPopupDayPicker.jsp?MONTH='+dateMonth+'&YEAR='+dateYear+'&ITEMPREFIX='+itemPrefix);
  var newwin=window.open(filename,'boxdaypicker', 'WIDTH=210,HEIGHT=220,RESIZABLE=yes,SCROLLBARS=no,STATUS=0');
  if (newwin != null)
  {
    if (newwin.opener == null)
      newwin.opener = self;
  }
}

function onAddUsers()
{
  var options = document.theForm.USER_LIST.options;
  if ( options.length > 0)
  {
    for (i=0; i<options.length;i++)
    {
      var curLenght = document.theForm.INVITED_USERS.length;
      if (options[i].selected == true)
      {
        var found = false;
        for(j=0; j < curLenght; j++)
        {
          if (document.theForm.INVITED_USERS.options[j].value == options[i].value)
          {
            found = true;
            break;
          }
        }
        if (!found)
        {
          var option = new Option(options[i].text, options[i].value);
          document.theForm.INVITED_USERS.options[curLenght] = option;
        }
      }
    }
  }
}

function onRemoveUsers()
{
  var options = document.theForm.INVITED_USERS.options;
  if ( options.length > 0)
  {
    for (i=options.length-1; i >=0; i--)
    {
      if (options[i].selected == true)
        options[i] = null;
    }
  }
}

// -->
</SCRIPT><!-- jscript for  date picker -->

<jsp:include page="/en/jsp/header.jsp" flush="true"/>

<form method="POST" name="theForm" action="<%=BoxStatic.servletDir%>BoxCalendarAction">

<table width="100%" height=26 align=middle border=0 cellpadding=0 cellspacing=0 bgcolor="#f4f4f4" style="font-size:16px;color:#d05000">
<tr><td>
    &nbsp;<img src="<%=BoxStatic.imageDir%>itemball.jpg" width=14 height=15 border=0 align="absmiddle">
    <b><%=boxName%> - Calendar Event Add/Edit</b>
</td></tr>
</table>

<hr width="100%" color=#E06000 align=left>

<table width="100%" border=0 cellpadding=0 cellspacing=0>
  <tr>
    <td width="100%">
      <!--- test string = <%=TESTSTRING%> <p> -->
        <table cellpadding="0" cellspacing="0" border="0" width="100%">
          <tr>
            <td valign="top" width="100%">
              <table cellpadding="0" cellspacing="0" border="0" width="100%">
                <tr bgcolor="#999999">
                  <td>
                    <table cellpadding="3" cellspacing="1" border="0" width="100%">
                      <tr bgcolor="#f4f5e1">
                        <td nowrap align="left"><font size="-1" face="Arial,Helvetica">
                          <input type="hidden" name="id" value=<%=ID%>>
                 <%
                    if (curID == CREATEDBY)
                    {
                      if (ID == 0)
                      { %>
                          <input type="submit" name="SubmitSave" value="Save" onclick="onSubmit()">
                          <input type="submit" name="SubmitCancel" value="Cancel">
                        <%
                      }
                      else
                      {%>
                          <input type="submit" name="SubmitUpdate" value="Update" onclick="onSubmit()">
                          <input type="submit" name="SubmitDelete" value="Delete" >
                          <input type="submit" name="SubmitCancel" value="Cancel" >
                    <%}
                    }
                    else
                    {%>
                      <input type="submit" name="SubmitCancel" value="Cancel" >
                  <%}%>
                          </font> </td>
                      </tr>
                    </table>
                  </td>
                </tr>
              </table>
              <table cellpadding="0" cellspacing="0" border="0" width="100%">
                <tr bgcolor="#999999">
                  <td width="100%">
                    <table cellpadding="3" cellspacing="1" border="0" width="100%">
                      <tr>
                        <td align="left" bgcolor="#dcdcdc" width="100%"><font face="Arial,Helvetica"><b>
                          <% if (ID==0)
                    out.print("New ");
                   else
                    out.print("Edit ");
                %>
                          Event </b></font> </td>
                      </tr>
                      <tr>
                        <td bgcolor="#eeeeee">
                          <table cellpadding="3" cellspacing="0" border="0" width="100%">
                            <tr>
                              <td valign="top" nowrap><font size="-1" face="Arial,Helvetica"><b>Subject</b></font>
                                &nbsp;&nbsp;&nbsp;&nbsp; <font size="-2" face="Arial,Helvetica"><i>80
                                characters max.</i></font> &nbsp;&nbsp;&nbsp;&nbsp;
                                <br>
                                <input name="SUBJECT" MAXLENGTH="80" SIZE="40" value='<%=SUBJECT%>'>
                              </td>
                              <td valign="top" nowrap><font size="-1" face="Arial,Helvetica"><b>Type</b>
                                <br>
                                <select name="CATEGORY" size="1">
                                  <calendar:CalendarCatList selected="<%=CATEGORY%>" showsystemcat="true" showallcategories="false" userid="<%=curCalUserID%>"/>
                                </select>
                                </font> </td>
                            </tr>
                            <tr>
                              <td valign="top" nowrap><font size="-1" face="Arial,Helvetica"><b>Date:</b>
                                <select name="FROM_MONTH" size="1">
                                  <common:MonthList selected="<%=FROM_MONTH%>" allownull="false" />
                                </select>
                                <select name="FROM_DAY" size="1">
                                  <common:DayList selected="<%=FROM_DAY%>" allownull="false" />
                                </select>
                                <select name="FROM_YEAR" size="1">
                                  <common:YearList selected="<%=FROM_YEAR%>" allownull="false" />
                                </select>
                                <A HREF="javascript:DateSelector(document.theForm.FROM_MONTH.options[document.theForm.FROM_MONTH.selectedIndex].value,
                      document.theForm.FROM_YEAR.options[document.theForm.FROM_YEAR.selectedIndex].value, 'FROM')"
                      ONMOUSEOVER="window.status='Click to select a date';return true"
                      ONMOUSEOUT="window.status='';return true;"> <IMG SRC="<%=BoxStatic.imageDir%>cal_daypicker.gif" WIDTH="22" HEIGHT="21" BORDER=0
                      alt="Click to select a date" ALIGN = "top"></A> </font>
                              </td>
                              <td valign="top" nowrap><font size="-1" face="Arial,Helvetica"><b>Sharing</b>
                                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>
                                <input type="radio" name="SHARING" value="0" <% if (SHARING==0) out.println(" checked "); %>>
                                Private &nbsp;
                                <input type="radio" name="SHARING" value="1" <% if (SHARING==1) out.println(" checked "); %>>
                                Show as Busy &nbsp;
                                <input type="radio" name="SHARING" value="2" <% if (SHARING==2) out.println(" checked "); %>>
                                Public </font> </td>
                            </tr>
                            <tr>
                              <td valign="top" nowrap>
                                <TABLE cellSpacing=0 cellPadding=3 border=0>
                                  <TBODY>
                                  <TR>
                                    <TD vAlign=center>
                                      <INPUT type=radio value=1 name="ISALLDAY"
                            <% if (ISALLDAY == 1 )
                                out.println(" checked ");
                            %>
                            >
                                    </TD>
                                    <TD vAlign=top>This is an <B>all day</B> event.</TD>
                                  </TR>
                                  <TR>
                                    <TD vAlign=center>
                                      <INPUT type=radio value=0 name="ISALLDAY"
                            <% if (ISALLDAY == 0 )
                                out.println(" checked ");
                            %>
                          >
                                    </TD>
                                    <TD vAlign=top>Starts at:
                                      <select  name="FROM_HOUR" size="1">
                                        <common:HourList selected="<%=FROM_HOUR%>" allownull="false" />
                                      </select>
                                      <select name="FROM_MINUTE" size="1">
                                        <common:MinuteList timeinterval="<%=timeInterval%>" selected="<%=FROM_MINUTE%>" allownull="false" />
                                      </select>
                                    </TD>
                                  </TR>
                                  <TR>
                                    <TD>&nbsp;</TD>
                                    <TD>Duration:
                                      <select  name="DURATION_HOUR" size="1">
                                        <common:HourList selected="<%=DURATION_HOUR%>" allownull="false" showampm="false" />
                                      </select>
                                      <select name="DURATION_MINUTE" size="1">
                                        <common:MinuteList timeinterval="<%=timeInterval%>" selected="<%=DURATION_MINUTE%>" allownull="false" />
                                      </select>
                                    </TD>
                                  </TR>
                                  </TBODY>
                                </TABLE>
                              </td>
                              <td valign="top" nowrap><font size="-1" face="Arial,Helvetica"><b>Description</b></font>
                                <br>
                                <textarea name="DESCRIPTION" rows="4" wrap="virtual" cols="30"><%=DESCRIPTION%></textarea>
                              </td>
                            </tr>
                          </table>
                        </td>
                      </tr>
                      <tr>
                        <td align="left" bgcolor="#dcdcdc">&nbsp; <font face="Arial,Helvetica"><b>Repeating
                          </b></font></td>
                      </tr>
                      <tr>
                        <td bgcolor="#eeeeee">
                          <TABLE CELLPADDING="3" CELLSPACING="0" WIDTH="100%" BORDER="0">
                            <TR>
                              <TD WIDTH="24">&nbsp;</TD>
                              <TD VALIGN="top" NOWRAP COLSPAN="2">
                                <p><FONT size="-1">
                                  <INPUT TYPE="radio" NAME="REPEAT_TYPE" value="0"
      <% if (REPEAT_TYPE == 0 )
          out.println(" checked ");
      %>
      >
                                  &nbsp;Do not repeat this appointment.</FONT><FONT size="-1"><BR>
                                  <INPUT TYPE="radio" NAME="REPEAT_TYPE" value="1"
      <% if (REPEAT_TYPE == 1 )
          out.println(" checked ");
      %>
      >
                                  &nbsp;Repeat every
                                  <SELECT name="REPEAT_EVERYWEEK" ONCLICK="document.theForm.REPEAT_TYPE[1].checked='true'">
                                    <%
  for(int i = 1; i < 5; i++)
  {
    out.print("<OPTION VALUE=\"");
    out.print(i);
    out.print("\"");
    if ( i == REPEAT_EVERYWEEK )
    {
      out.print(" selected ");
    }
    out.print(">");
    out.print(i);
    out.print("</OPTION>");
  }
%>
                                  </SELECT>
                                  week(s) on
                                  <INPUT TYPE="checkbox" name="REPEAT_WEEKDAYS" value="1" ONCLICK="document.theForm.REPEAT_TYPE[1].checked='true'"
    <%
    //1,2,4,8,16,32,64 = Sun,Mon,Tue,Wed,Thu,Fri,Sat
     if (( REPEAT_WEEKDAYS & 1) != 0)
        out.print(" checked ");
    %>
   >
                                  &nbsp;Su&nbsp;
                                  <INPUT TYPE="checkbox" name="REPEAT_WEEKDAYS" value="2" ONCLICK="document.theForm.REPEAT_TYPE[1].checked='true'"
    <%
     if (( REPEAT_WEEKDAYS & 2) != 0)
        out.print(" checked ");
    %>
   >
                                  &nbsp;Mo&nbsp;
                                  <INPUT TYPE="checkbox" name="REPEAT_WEEKDAYS" value="4" ONCLICK="document.theForm.REPEAT_TYPE[1].checked='true'"
    <%
     if (( REPEAT_WEEKDAYS & 4) != 0)
        out.print(" checked ");
    %>
   >
                                  &nbsp;Tu&nbsp;
                                  <INPUT TYPE="checkbox" name="REPEAT_WEEKDAYS" value="8" ONCLICK="document.theForm.REPEAT_TYPE[1].checked='true'"
    <%
     if (( REPEAT_WEEKDAYS & 8) != 0)
        out.print(" checked ");
    %>
   >
                                  &nbsp;We&nbsp;
                                  <INPUT TYPE="checkbox" name="REPEAT_WEEKDAYS" value="16" ONCLICK="document.theForm.REPEAT_TYPE[1].checked='true'"
    <%
     if (( REPEAT_WEEKDAYS & 16) != 0)
        out.print(" checked ");
    %>
   >
                                  &nbsp;Th&nbsp;
                                  <INPUT TYPE="checkbox" name="REPEAT_WEEKDAYS" value="32" ONCLICK="document.theForm.REPEAT_TYPE[1].checked='true'"
    <%
     if (( REPEAT_WEEKDAYS & 32) != 0)
        out.print(" checked ");
    %>
   >
                                  &nbsp;Fr&nbsp;
                                  <INPUT TYPE="checkbox" name="REPEAT_WEEKDAYS" value="64" ONCLICK="document.theForm.REPEAT_TYPE[1].checked='true'"
    <%
     if (( REPEAT_WEEKDAYS & 64) != 0)
        out.print(" checked ");
    %>
   >
                                  &nbsp;Sa&nbsp; <BR>
                                  <INPUT TYPE="radio" NAME="REPEAT_TYPE" value="2"
      <% if (REPEAT_TYPE == 2 )
          out.println(" checked ");
      %>
      >
                                  &nbsp;Repeat on the&nbsp;
                                  <SELECT name="REPEAT_WHICHWEEK" ONFOCUS="document.theForm.REPEAT_TYPE[2].checked='true'">
                                    <OPTION VALUE="1"  <% if (REPEAT_WHICHWEEK==1) out.print("selected");%> >First</OPTION>
                                    <OPTION VALUE="2"  <% if (REPEAT_WHICHWEEK==2) out.print("selected");%>>Second</OPTION>
                                    <OPTION VALUE="3"  <% if (REPEAT_WHICHWEEK==3) out.print("selected");%>>Third</OPTION>
                                    <OPTION VALUE="4"  <% if (REPEAT_WHICHWEEK==4) out.print("selected");%>>Fourth</OPTION>
                                    <OPTION VALUE="5"  <% if (REPEAT_WHICHWEEK==5) out.print("selected");%>>Last</OPTION>
                                  </SELECT>
                                  &nbsp; &nbsp;
                                  <SELECT name="REPEAT_WHICHWEEKDAY" ONFOCUS="document.theForm.REPEAT_TYPE[2].checked='true'">
                                    <OPTION VALUE="1"  <% if (REPEAT_WHICHWEEKDAY==1) out.print("selected");%> >Sunday</OPTION>
                                    <OPTION VALUE="2"  <% if (REPEAT_WHICHWEEKDAY==2) out.print("selected");%> >Monday</OPTION>
                                    <OPTION VALUE="4"  <% if (REPEAT_WHICHWEEKDAY==4) out.print("selected");%> >Tuesday</OPTION>
                                    <OPTION VALUE="8"  <% if (REPEAT_WHICHWEEKDAY==8) out.print("selected");%> >Wednesday</OPTION>
                                    <OPTION VALUE="16"  <% if (REPEAT_WHICHWEEKDAY==16) out.print("selected");%> >Thursday</OPTION>
                                    <OPTION VALUE="32"  <% if (REPEAT_WHICHWEEKDAY==32) out.print("selected");%> >Friday</OPTION>
                                    <OPTION VALUE="64"  <% if (REPEAT_WHICHWEEKDAY==64) out.print("selected");%> >Saturday</OPTION>
                                  </SELECT>
                                  &nbsp;of every&nbsp;
                                  <SELECT name="REPEAT_EVERYMONTH" ONFOCUS="document.theForm.REPEAT_TYPE[2].checked='true'">
                                    <OPTION VALUE="1" <% if (REPEAT_EVERYMONTH==1) out.print("selected");%> >1</OPTION>
                                    <OPTION VALUE="2" <% if (REPEAT_EVERYMONTH==2) out.print("selected");%>>2</OPTION>
                                    <OPTION VALUE="3" <% if (REPEAT_EVERYMONTH==3) out.print("selected");%>>3</OPTION>
                                    <OPTION VALUE="4" <% if (REPEAT_EVERYMONTH==4) out.print("selected");%>>4</OPTION>
                                    <OPTION VALUE="5" <% if (REPEAT_EVERYMONTH==5) out.print("selected");%>>5</OPTION>
                                    <OPTION VALUE="6" <% if (REPEAT_EVERYMONTH==6) out.print("selected");%>>6</OPTION>
                                  </SELECT>
                                  &nbsp;month(s)<BR>
                                  <INPUT TYPE="radio" NAME="REPEAT_TYPE" value="3"
      <% if (REPEAT_TYPE == 3 )
          out.println(" checked ");
      %>
      >
                                  &nbsp;Repeat every month<BR>
                                  <INPUT TYPE="radio" NAME="REPEAT_TYPE" value="4"
      <% if (REPEAT_TYPE == 4 )
          out.println(" checked ");
      %>
      >
                                  &nbsp;Repeat every year</FONT> </p>
                                </TD>
                            </TR>
                            <TR>
                              <TD VALIGN="top" NOWRAP COLSPAN="2">
                                <INPUT TYPE="radio" NAME="REPEAT_FOREVER" value="0" <% if (REPEAT_FOREVER==0) out.print("checked");%> >
                                &nbsp;Repeat until&nbsp;
                                <SELECT name="UNTIL_MONTH" ONCLICK="document.theForm.REPEAT_FOREVER[0].checked='true'">
                                  <common:MonthList selected="<%=UNTIL_MONTH%>" allownull="false" />
                                </SELECT>
                                <SELECT name="UNTIL_DAY" ONCLICK="document.theForm.REPEAT_FOREVER[0].checked='true'">
                                  <common:DayList selected="<%=UNTIL_DAY%>" allownull="false" />
                                </SELECT>
                                <SELECT name="UNTIL_YEAR" ONCLICK="document.theForm.REPEAT_FOREVER[0].checked='true'">
                                  <common:YearList selected="<%=UNTIL_YEAR%>" allownull="false" />
                                </SELECT>
                                <A HREF="javascript:DateSelector(document.theForm.UNTIL_MONTH.options[document.theForm.UNTIL_MONTH.selectedIndex].value,
      document.theForm.UNTIL_YEAR.options[document.theForm.UNTIL_YEAR.selectedIndex].value, 'UNTIL')"
      ONMOUSEOVER="window.status='Click to select a date';return true"
      ONMOUSEOUT="window.status='';return true;"
      ONCLICK="document.theForm.REPEAT_FOREVER[0].checked='true'" > <IMG SRC="<%=BoxStatic.imageDir%>cal_daypicker.gif" WIDTH="22" HEIGHT="21" BORDER=0
      alt="Click to select a date" ALIGN = "top"> </A> <BR>
                                <INPUT TYPE="radio" NAME="REPEAT_FOREVER" value="1" <% if (REPEAT_FOREVER==1) out.print("checked");%>>
                                &nbsp;Repeat forever</TD>
                            </TR>
                          </TABLE>
                        </td>
                      </tr>
                      <tr>
                        <td align="left" bgcolor="#dcdcdc">&nbsp; <font face="Arial,Helvetica"><b>Inviting
                          </b>(created by <%=CREATEDBYUSERNAME%>)
                          </font></td>
                      </tr>
                      <tr>
                        <td  bgcolor="#eeeeee">
                          <table width="100%" >
                            <tr>
                              <td bgcolor="#eeeeee" height="21" width="742"> Selected
                                users: </td>
                              <td width="102"></td>
                              <td valign="top"  bgcolor="#eeeeee" width="100%">
                                Invited users: </td>
                            </tr>
                            <tr>
                              <td bgcolor="#eeeeee" height="87">
                                <select name="USER_LIST" multiple size="5">
<%
                    int[] ids = um.getAllUsers(" order by lastname, firstname");
                    if (ids != null && ids.length >0)
                    {
                      for (int i = 0; i < ids.length; i++)
                      {
                        if (curID != ids[i])
                        {
                          out.print("<option value=\"");
                          out.print(ids[i]);
                          out.print("\">");
				                  out.print(um.getUserDisplayName(ids[i], um.USERNAME_FORMAT_ALL));
                          out.print("</option>");
                        }
                      }
                    }
%>
                                </select>
                              </td>
                              <td bgcolor="#eeeeee" align=center>
                                <p>
                                  <input type="button" name="Add" value="Add Users =>" onclick="onAddUsers()">
                                </p>
                                <p>
                                  <input type="button" name="Remove" value="<= Remove Users" onclick="onRemoveUsers()">
                                </p>
                              </td>
                              <td valign="top" bgcolor="#eeeeee">
                                <select name="INVITED_USERS" size="5" multiple>
<%
                    if (INVITED_USERS != null && INVITED_USERS.length >0
                        && ids != null && ids.length >0)
                    {
                      for (int i = 0; i < ids.length; i++)
                      {
                        for (int j = 0; j < INVITED_USERS.length; j++)
                        {
                          if (INVITED_USERS[j] == ids[i])
                          {
                              out.print("<option value=\"");
                              out.print(ids[i]);
                              out.print("\">");
    				                  out.print(um.getUserDisplayName(ids[i], um.USERNAME_FORMAT_ALL));
                              out.print("</option>");
                              break;
                          }
                        }
                      }
                    }
%>
                                </select>
                              </td>
                            </tr>
                            <tr>
                              <td height="5"></td>
                              <td><img height="1" width="102" src="/spacer.gif"></td>
                              <td></td>
                            </tr>
                          </table>
                        </td>
                      </tr>
                    </table>
                  </td>
                </tr>
              </table>
            </td>
          </tr>
        </table>
    </td>
  </tr>
</table>

<hr width="100%" color=#E06000 align=left>

</form>

<jsp:include page="/en/jsp/footer.jsp" flush="true"/>
